//
//  WHYNetworkTools.h
//  WHYWeibo-OC
//
//  Created by 王洪运 on 15/11/24.
//  Copyright © 2015年 王洪运. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

typedef NS_ENUM(NSUInteger, WHYRequestMethod) {
    GET,
    POST,
};

typedef void(^WHYRequestCallBack)(id result, NSError *error);

@interface WHYNetworkTools : AFHTTPSessionManager

+(instancetype)sharedTools;

@property (strong, nonatomic) NSURL *oauthURL;

-(void)loadAccessTokenWithCode:(NSString *)code finished:(WHYRequestCallBack)finished;

@end
